package com.hongyu.manager.media.manager.service.impl;


import com.hongyu.manager.media.manager.model.http.MediaRequest;
import com.hongyu.manager.media.manager.model.result.Result;
import com.hongyu.manager.media.manager.model.result.ResultBuilder;
import com.hongyu.manager.media.manager.service.MediaRequestService;
import org.slf4j.Logger;
import org.springframework.stereotype.Service;

@Service
public class MediaRequestServiceImpl implements MediaRequestService {
    @Override
    public Result returnError(int errCode, String showMsg, String requestId, int i, Logger log) {
        log.info(showMsg);
        Result result=new Result(false,errCode,showMsg,i);
        return result;
    }
    @Override
    public Result returnSuccess(String msg) {

        return returnSuccess(new ResultBuilder<Integer>(), msg);
    }

    @Override
    public Result returnSuccess(ResultBuilder resultBuilder, String msg, int code) {
        return resultBuilder.returnSuccess(msg,(long)code);
    }

    @Override
    public Result returnSuccess(ResultBuilder resultBuilder, String msg) {
        return resultBuilder.returnSuccess(msg);
    }

    @Override
    public Result returnError(int errCode, String showMsg, int i, Logger log) {
        log.info(showMsg);
        Result result=new Result(false,errCode,showMsg);
        return result;
    }

    @Override
    public void save(MediaRequest villageRequest) {

    }

    @Override
    public MediaRequest update(MediaRequest villageRequest) {
        return null;
    }

    @Override
    public MediaRequest find(String requestId) {
        return null;
    }
}
